<?php

namespace IDock\Insurance\DBIC\Request;

use IDock\Insurance\DBIC\Response\VehicleModelResponse;
use IDock\Visitor\VehicleModelVisitor;

class VehicleModelRequest extends AllDBICRequest
{
    protected $route = 'dbic/qos/carModel/query';

    protected $response = VehicleModelResponse::class;

    protected $urlTip = '车型查询';

    /*** @var  VehicleModelVisitor $visitor */
    protected $visitor;

    public function generate(): array
    {
        return [
            'vehicleName' => $this->visitor->vehicleModel,
            'licenseNo' => $this->visitor->licenseNo,
            'frameNo' => $this->visitor->vin,
            'enrollDate' => $this->visitor->firstRegisterDate,
            'carOwner' => '',
            'engineNo' => $this->visitor->engineNo,
        ];
    }
}